import request from "@/utils/request";

const api_name = '/admin/cmn/dict'

export default {
  /**
   * 根据字典编号查询字典
   * @param dictCode
   */
  findByDictCode(dictCode) {
    return request({
      url: `${api_name}/findByDictCode/${dictCode}`,
      method: 'get'
    })
  },
  /**
   * 根据父级编号查询子节点
   * @param parentId
   */
  findByParentId(parentId) {
    return request({
      url: `${api_name}/findChildData/${parentId}`,
      method: 'get'
    })
  }
}
